package com.alibaba.algo.cooperation.usercomponent.vo.res.user;

import lombok.Data;

import java.util.Objects;

/**
 * @author: niechanggang
 * @date:2021/3/18 10:01
 * @description:
 */
@Data
public class ActionInfo {

    private long id;
    private String actionCode;
    private String actionName;

    public ActionInfo() {
    }

    public ActionInfo(long id, String actionCode, String actionName) {
        this.id = id;
        this.actionCode = actionCode;
        this.actionName = actionName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ActionInfo that = (ActionInfo) o;
        return id == that.id && Objects.equals(actionCode, that.actionCode) && Objects.equals(actionName, that.actionName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, actionCode, actionName);
    }
}
